package  com.zzkj.util
{
	import com.storage.model.AppModelLocator;
	
	import mx.controls.Alert;
	import mx.rpc.Fault;
	
	public class ExceptionHandler
	{
		public function ExceptionHandler()
		{
		}
		private static var model:AppModelLocator = AppModelLocator.getInstance();
		public static function onfault(faultEvent:Fault):void{  
 						 if(model.isLoading){
 							model.removeMask();
 						 }
                         if(faultEvent.rootCause != null){  
                                 Alert.show(""+faultEvent.rootCause.message,'错误');  
                         }else{  
                                 Alert.show(""+faultEvent.faultString,'错误');  
                         }  
                          
                 }  


	}
}